import {createStore,combineReducers,applyMiddleware}  from 'redux'
import createSagaMiddleware from 'redux-saga'
import {helloSaga} from './sagas/hello';
import {watchCountSaga} from './sagas/count';
import {watchUserSaga} from './sagas/user';

import rootReducer from './reducers';
import rootSaga from './sagas'

const sagaMiddleware = createSagaMiddleware()

const store = createStore(rootReducer,applyMiddleware(sagaMiddleware))

sagaMiddleware.run(rootSaga)

export default store

